home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / c / library / dos / communic / cport13 / comdemo.doc < prev    next >
Encoding:
Text File  |  1991-10-31  |  2.5 KB  |  60 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.         Comdemo - Serial Communications Demo.
  7.  
  8.         Comdemo is a full duplex terminal program. It recognizes most
  9.         of the more common ANSI control sequence such as cursor
  10.         location and screen attributes. You can use Comdemo to
  11.         dial up a BBS or communicate with RS-232 equipment.
  12.  
  13.         Comdemo will send Ctrl characters and keys such as the
  14.         escape key verbatim. Some Alt characters are reserved for
  15.         commands. They are as follows:
  16.  
  17.  
  18.          Alt A - Toggle between ANSI and TTY terminal.
  19.          Alt B - Next baud rate.
  20.          Alt C - Next COM port.
  21.          Alt D - Hayes dial command (sends the string "ATDT")
  22.          Alt E - Toggle echo mode.
  23.          Alt G - Hayes hang up command (sends the string "~~~+++~~~ATH0\r\n").
  24.          Alt H - Next handshake scheme.
  25.          Alt I - Initialize a Hayes modem (sends the string "ATZ").
  26.          Alt N - Append a line feed to a carriage return toggle.
  27.          Alt M - Toggle mode (8-1-N, 7-1-E).
  28.          Alt X - Quit Comdemo.
  29.          Pg Up - Upload a file (Xmodem)
  30.          Pg Dn - Download a  file (Xmodem)
  31.  
  32.  
  33.         To dial up a BBS, set the COM port (Alt C), baud rate (Alt B),
  34.         word length (Alt W), number of stop bits (Alt S) and parity
  35.         (Alt P). If the BBS send ANSI escape codes make sure ANSI is
  36.         selected (Alt A). You probably need to set LF on (Alt N) as well.
  37.         Now you can initialize your modem and dial. Press Alt I to
  38.         initialize the modem and then press Alt D followed by the
  39.         phone number and the enter key. If the initialize and dial
  40.         strings in Comdemo are not appropriate for your modem, you
  41.         can enter them by hand.
  42.  
  43.  
  44.         The source code for Comdemo is provided for your inspection.
  45.         It is, however, compiled with function that are exclusive to
  46.         the Turbo C v2.0 run time library. Specifically those prototyped
  47.         in Conio.h. If you have similar functions in your C
  48.         compiler's run time library or you have an extended windows
  49.         library, you could easily replace them. There are not that
  50.         many. They are as follows:
  51.  
  52.  
  53.                 gotoxy()   - Locates the cursor.
  54.                 wherex()   - Returns cursor X coordinate.
  55.                 wherey()   - Returns cursor Y coordinate.
  56.                 clrscr()   - Clears the window.
  57.                 textattr() - Sets the text attributes.
  58.                 window()   - Defines a window.
  59.                 clreol()   - Clears to end of line.
  60.